package testy;

import static org.junit.Assert.*;

import org.junit.Test;

import gra.Player;
import gra.Bot;
import gra.Human;
import gra.Account;
import gra.Card;

public class AccountTest 
{
    @Test
    public void test()
    {
        Player gracz1 = new Bot("BOT");
        Player gracz2 = new Human("HUMAN");
        assertNotNull(gracz1);
        assertNotNull(gracz2);
        Account owner1 = new Account(gracz1, 0, 0);
        Account owner2 = new Account(gracz2, 0, 0);
        assertNotNull(owner1);
        assertNotNull(owner2);
    }
    
    @Test(expected = NullPointerException.class)
    public void testGetCards()
    {
        Player gracz1 = new Bot("BOT");
        Account owner1 = new Account(gracz1, 0, 0);
        Card[] temp = owner1.getCards();
        for(Card karta : temp)
        {
            karta.show();
        }
    }

}
